package com.bookshop.entity;

import java.io.Serializable;

/**
 * 购物车实体
 * 
 * @author yannis
 * 
 */
public class ShoppingCart implements Serializable {
	 
	private static final long serialVersionUID = -7112739977665166021L;
	private int cartId;// 自增ID
	private int userId;// 用户ID
	private int cartNum;// 数量
	private int bookId;//图书ID
	private int isCheck;//是否选中
	private Book book;//图书

	public ShoppingCart() {
		super();
	}

	public ShoppingCart(int userId, int cartNum, Book book) {
		super();
		this.userId = userId;
		this.cartNum = cartNum;
		this.book = book;
	}

	public ShoppingCart(int cartId, int userId, int cartNum,int isCheck,Book book) {
		super();
		this.cartId = cartId;
		this.userId = userId;
		this.cartNum = cartNum;
		this.isCheck=isCheck;
		this.book = book;
	}
	
	public ShoppingCart(int cartId, int userId, int cartNum,Book book) {
		super();
		this.cartId = cartId;
		this.userId = userId;
		this.cartNum = cartNum;
		this.book = book;
	}

	public ShoppingCart(int userId, int bookId, int cartNum) {
		super();
		this.userId = userId;
		this.cartNum = cartNum;
		this.bookId = bookId;
	}

	public int getIsCheck() {
		return isCheck;
	}

	public void setIsCheck(int isCheck) {
		this.isCheck = isCheck;
	}

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public int getCartId() {
		return cartId;
	}

	public void setCartId(int cartId) {
		this.cartId = cartId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	

	public int getCartNum() {
		return cartNum;
	}

	public void setCartNum(int cartNum) {
		this.cartNum = cartNum;
	}

}
